/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.contract.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 新增订单-kLine机器人DTO
 *
 * @date 2022-08-11 10:08:11
 */
@Data
@ApiModel(value = "ContractOrderNewRobotKLineDTO")
public class ContractRobotPlaceOrderDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id", required = true)
	@NotNull(message = "数据异常，userId为空")
	private Long userId;

	/**
	 * 币对id
	 */
	@ApiModelProperty(value = "币对id", required = true)
	@NotNull(message = "数据异常，symbolId为空")
	private Long symbolId;

	/**
	 * 方向（0做多、1做空）
	 */
	@ApiModelProperty(value = "方向（0做多、1做空）", required = true)
	@NotBlank(message = "数据异常，side为空")
	private String side;

	/**
	 * 操作类型（0开仓、1平仓）
	 */
	@ApiModelProperty(value = "操作类型（0开仓、1平仓）", required = true)
	@NotBlank(message = "数据异常，operationType为空")
	private String operationType;

	/**
	 * 价格
	 */
	@ApiModelProperty(value = "价格", required = true)
	@NotNull(message = "数据异常，price为空")
	private BigDecimal price;

	/**
	 * 数量
	 */
	@ApiModelProperty(value = "数量", required = true)
	@NotNull(message = "数据异常，num为空")
	private BigDecimal num;
}
